﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrador.Master" AutoEventWireup="true" CodeBehind="UI_Access.aspx.cs" Inherits="Espam.Idiomas.Decimo.Tesis.Web.UI_Access" EnableEventValidation="false" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .table-responsive {
            margin-top: 0px;
        }
    </style>
     <style type="text/css">
        .auto-style1 {
            height: 37px;
        }
    </style>
     <style type="text/css">
        .fontDt {
            font-size: 9px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenido" runat="server">
    <script type="text/javascript">
        window.onload = function () {
            var seconds = 3;
            setTimeout(function () {
                document.getElementById("<%=lblvalida.ClientID %>").style.display = "none";
            }, seconds * 1000);
        };
</script>
       <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>
     <div id="page-wrapper">

            <div class="page-content">

                <!-- begin PAGE TITLE AREA -->
                <!-- Use this section for each page's title and breadcrumb layout. In this example a date range picker is included within the breadcrumb. -->
                <div class="row">
                    <div class="col-lg-12">
                        <div class="page-title">
                            <h1>M&oacute;dulos
                                <small>Nuevo M&oacute;dulo</small>
                            </h1>
                            <ol class="breadcrumb">
                                <li class="active">
                                 <asp:Label ID="lblvalida" runat="server" Text=""></asp:Label></li>
                                <li class="pull-right">
                                    <div id="reportrange" class="btn btn-green btn-square date-picker">
                                        <i class="fa fa-calendar"></i>
                                        <span class="date-range"></span> <i class="fa fa-caret-down"></i>
                                    </div>
                                </li>
                            </ol>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->
                <!-- end PAGE TITLE AREA -->

            </div>

          <!-- end PAGE TITLE ROW -->
          <!-- Standard Modal Trigger -->
                               
                <div class="row">
               <!-- Validation Examples -->
                    <div class="col-lg-12">
                        <div class="portlet portlet-default">
                            <div class="portlet-heading">
                                <div class="portlet-title">
                                    <h4>Datos Accesos</h4>
                                </div>
                                <div class="portlet-widgets">
                                    <a data-toggle="collapse" data-parent="#accordion" href="#validationExamples"><i class="fa fa-chevron-down"></i></a>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div id="validationExamples" class="panel-collapse collapse in">
                                <div class="portlet-body">
                                   
                                <div class="portlet-body">
                                <div class="table-responsive">
                                    <table class="table">
                                        <thead>
                                            <tr>
                                                <td>
                                                    
                                                    <asp:TextBox ID="txtstartDate" placeholder="aaaa/mm/dd" autocomplete="off" runat="server" CssClass="form-control"></asp:TextBox>
                                                    <cc1:CalendarExtender PopupButtonID="fInicio" TargetControlID="txtstartDate" runat="server" ID="CalendarFechaInicio" Format="yyyy/MM/dd">
                                                    </cc1:CalendarExtender>
                                                    
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtendDate" placeholder="aaaa/mm/dd" autocomplete="off" runat="server" CssClass="form-control"></asp:TextBox>
                                                    <cc1:CalendarExtender PopupButtonID="fInicio" TargetControlID="txtendDate" runat="server" ID="CalendarFechaFin" Format="yyyy/MM/dd">
                                                    </cc1:CalendarExtender>
                                                </td>
                                                <td><asp:Button ID="btnCancelar" runat="server" Text="Cancelar"  CssClass="btn btn-block"   /></td>
                                                <td>
                                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                        <ContentTemplate>
                                                            <asp:Button ID="btnGuardarModulo" runat="server" Text="Generar" CssClass="btn btn-dark-blue" OnClick="btnGuardarModulo_Click" /></td>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel> 
                                            </tr>
                                        </thead>
                                        <tbody>

                                          
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                                    <%--<asp:GridView ID="gvHorarios" Width="100%" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" ForeColor="Black" OnRowCommand="gvHorarios_RowCommand" >
                                        <Columns>
                                            <asp:BoundField DataField="horariogrid" HeaderText="Horarios" />
                                            <asp:TemplateField HeaderText="Modulos">
                                                <ItemTemplate>
                                                    <asp:GridView ID="gvModulos" Width="100%" runat="server" AutoGenerateColumns="False" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" DataSource='<%# Bind("Modulosgrid") %>' ForeColor="Black" OnRowCommand="gvModulos_RowCommand" >
                                                        <Columns>
                                                            <asp:BoundField DataField="codigoModulo" HeaderText="Modulo" />
                                                            <asp:BoundField DataField="ubicacion" HeaderText="Ubicacion" />
                                                            <asp:BoundField DataField="docente" HeaderText="Docente" />
                                                            <asp:CommandField ShowSelectButton="True" />
                                                        </Columns>
                                                        <FooterStyle BackColor="#CCCCCC" />
                                                        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                                        <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                                        <RowStyle BackColor="White" />
                                                        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                                        <SortedAscendingHeaderStyle BackColor="Gray" />
                                                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                                        <SortedDescendingHeaderStyle BackColor="#383838" />
                                                    </asp:GridView>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <FooterStyle BackColor="#CCCCCC" />
                                        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                        <RowStyle BackColor="White" />
                                        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                        <SortedAscendingHeaderStyle BackColor="Gray" />
                                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                        <SortedDescendingHeaderStyle BackColor="#383838" />
                               </asp:GridView>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                    <!-- End Validation Examples -->
             </div>

                <!-- /.row -->
         <div class="row">
               <!-- Validation Examples -->
                    <div class="col-lg-12">
                        <div class="portlet portlet-default">
                            <div class="portlet-heading">
                                <div class="portlet-title">
                                    <h4>Lista de Accesos</h4>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div id="Div1" class="panel-collapse collapse in">
                                <div class="portlet-body" >
                                   
                                <div class="portlet-body">
                                     
                                     <div class="table-responsive">
                                    <%-- <table class="table">--%>
                               <%-- </div>--%>
                                  <!-- gridview modulos -->

                                  <!-- End gridview modulos -->
                                    <%--</form>--%>
                                         <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                             <ContentTemplate>

                                             
                                    <asp:GridView ID="gvAccesos" Width="100%" runat="server" 
                                        AutoGenerateColumns="False" CellPadding="4" GridLines="Horizontal" 
                                        BackColor="White" BorderColor="#336666" 
                                        BorderStyle="Double" BorderWidth="3px" OnLoad="gvAccesos_Load" OnPreRender="gvAccesos_PreRender1"
                                         >
                                        <Columns>
                                            <asp:BoundField DataField="documento" HeaderText="USUARIO" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="nombresYApellidos" HeaderText="APELLIDOS Y NOMBRES" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="fecha" HeaderText="FECHA Y HORA" >
                                            <HeaderStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="ip" HeaderText="DIRECCION IP" >
                                            <HeaderStyle HorizontalAlign="Center"/>
                                            </asp:BoundField>
                                        </Columns>
                                    </asp:GridView>
                                                 </ContentTemplate>
                                         </asp:UpdatePanel>
                                       <%--  </table>--%>
                                    </div>
                                    </div>

                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                        <ProgressTemplate>
                                            <div id="Background" class="Background"></div>
                                            <div id="Progress" class="progress">
                                                <h6> <p style="text-align:center"> <b>Procesando Datos, Espere por favor... <br /></b> </p> </h6>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                         <%--</form>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /.col-lg-12 -->
                    <!-- End Validation Examples -->
             </div>
                <!-- /.row -->
     </div>

</asp:Content>
